<%--
  Created by IntelliJ IDEA.
  User: user
  Date: 2024/6/3
  Time: 10:11
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<%--jsp:useBean表示对javaBean进行实例化--%>
<jsp:useBean id="student" class="com.candy.bean.Student" scope="request" />
<%--对javabean中的属性进行赋值 期中name属性与javaBean的id对应--%>
<jsp:setProperty name="student" property="stuName" value="tom"></jsp:setProperty>
<%--对javabean中的属性进行取值--%>
<jsp:getProperty name="student" property="stuName"/>
</body>
</html>
